﻿using System.ComponentModel;
using K9Nano.Application.Frontend;
using Microsoft.AspNetCore.Mvc;

namespace K9Nano.AspNetCore.Controllers;

/// <summary>
/// 前端UI相关接口
/// </summary>
[Route("admin/api/frontend")]
[Description("前端UI相关接口")]
public class FrontendController(IFrontendAppService service) : ApiControllerBase
{
    /// <summary>
    /// 获取当前用户可用前端路由
    /// </summary>
    /// <returns></returns>
    [HttpGet("routes")]
    [Description("获取当前用户可用前端路由")]
    public IEnumerable<string> GetRoutes()
    {
        return service.GetRoutes();
    }
}